﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<List<TVXD23.Web.Models.IMAGE>>" %>

<div id="bigPic">
    <%foreach (var item in Model)
      { %>
    <a href="/Home/DetailsImage/<%:item.ID %>?lang=vi">
        <img src="<%:item.ImagePath %>"  width="638" height="345"
           rel="<%:item.ImageName %>" />
    </a>
    <%} %>
</div>
<%
    int i = 1; %>
<ul id="thumbs">
    <%foreach (var item in Model)
      { %>
    <li rel='<%:i %>'>
        <img src="<%:item.ImagePath %>" alt="<%:item.ImageThumbPath %>"
            rel="<%:item.ImageName %>" /><br /><%:Html.RenderImageName(item.ImageName) %>
    </li>
    <%
          i++; %>
    <%} %>
</ul>
<div id="clearfix"></div>